package com.teamwork.shareplatform.service;

import com.teamwork.shareplatform.entity.User;

import java.util.List;

public interface UserService {
    List<User> findAll();

    //根据用户名和密码查询用户
    User checkUser(String telephone, String password, int utype);

    int addUser(User user);

    User queryById(int uid);

    List<User> queryAllUser(int pageNum, int pageSize);

    int addUserByEdit(User user);

    int updateUser(User user);

    int deleteUser(int id);
}